/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.softwareprincipals.single_responsibility_principal.obey.model;

/**
 *
 * @author Matthew
 */
public class CompactSubcriber extends Subscriber {
    
    private boolean accountValid;
    private int accountBalance;

    public int getAccountBalance() {
        return accountBalance;
    }

    public void setAccountBalance(int accountBalance) {
        this.accountBalance = accountBalance;
    }

    public boolean isAccountValid() {
        return accountValid;
    }

    public void setAccountValid(boolean accountValid) {
        this.accountValid = accountValid;
    }

    public int getCompactFee() {
        return compactFee;
    }

    public void setCompactFee(int compactFee) {
        this.compactFee = compactFee;
    }
    
    public String checkAccount(){
        if(getCompactFee()>200){
            setAccountValid(true);
            return "valid subscription";
        }
        else{
            setAccountValid(false);
            return "not valid subscription";
        }
    }
}
